package city.spring.modules.medicine.service;

import city.spring.modules.medicine.entity.MedicinereceiptapprovalEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import lombok.NonNull;

import java.security.Principal;
import java.util.List;

/**
 * Service：药品领用审核
 *
 * @author 谢金婷
 * @date 2020-06-27 22:36:03
 */
public interface MedicinereceiptapprovalService extends IService<MedicinereceiptapprovalEntity> {
    String CACHE_NAME = "medicinereceiptapproval";

    /**
     * 业务处理：保存一个 <strong>药品领用审核</strong>
     *
     * @param entity 药品领用审核
     */
    void saveMedicinereceiptapproval(MedicinereceiptapprovalEntity entity, @NonNull Principal user);

    /**
     * 业务处理：修改一个 <strong>药品领用审核</strong>
     *
     * @param entity 药品领用审核
     */
    void updateMedicinereceiptapproval(MedicinereceiptapprovalEntity entity);

    /**
     * 业务处理：删除一个 <strong>药品领用审核</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteMedicinereceiptapproval(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>药品领用审核</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteMedicinereceiptapproval(List<String> primaryKeys);
}